#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>

int main(int argc, char* argv[], char* env[])
{
    int i = 0;
    sleep(1);

    printf("process parameter:\n");
    for (i = 0; i < argc; i++) {
        printf("exec = %d, %s\n", getpid(), argv[i]);
    }

    printf("environment list:\n");
    i = 0;
    while (env[i]) {
        printf("exec = %d, %s\n", getpid(), env[i++]);
    }

    return 0;
}
